import { Node, utils } from "cc";
import { IView } from "../../frame/common/view/IView";
import { ViewBase } from "../../frame/common/view/ViewBase";
import { Util } from "../../Util";
import { DemoMainCtrl } from "./DemoMainCtrl";


export class DemoMainView extends ViewBase implements IView {

    btn_multiView: Node;

    get myViewCtrl(): DemoMainCtrl {
        return this._viewCtrl as DemoMainCtrl
    }

    protected bindNode(): void {
        super.bindNode();
        this.btn_multiView = Util.ins.render.searchChild(this.node, "btn_multiView");
    }

    protected unBindNode(): void {
        super.unBindNode();
        this.btn_multiView = null;
    }



}